Stored Procedures [dbo].[BAEOrderCategoryGetAllChildren]
Properties
PropertyValue
ANSI Nulls OnYes
Quoted Identifier OnYes
Parameters
NameData TypeMax Length (Bytes)
@OrderCategoryIDint4
SQL Script
create procedure [dbo].[BAEOrderCategoryGetAllChildren] @OrderCategoryID as
int
AS
    SELECT *
    FROM OrderCategory AS oc JOIN OrderCategoryParentLookup AS ocpl ON oc.OrderCategoryID = ocpl.OrderCategoryID
    WHERE ocpl.OrderCategoryParentID = @OrderCategoryID;

GO
Uses